<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. .
require_once template('head'); 
echo <<<EOT
-->
<title>{$lang_setimgSet}</title>
</head>
$listjs
<body>
<!--
EOT;
require_once template('app/batch/top');
echo <<<EOT
-->
<script type="text/javascript">
function batch(dofile){
	var form = $("form[name='"+dofile+"']");
	var class1 = $("input[id='"+dofile+"class1']");
	var class2 = $("input[id='"+dofile+"class2']");
	var class3 = $("input[id='"+dofile+"class3']");
	class1.val($("select[id='class1select']").val());
	class2.val($("select[id='class2select']").val());
	class3.val($("select[id='class3select']").val());
	form.submit()
}
</script>
<form  method="POST" name="myform" action="watermark.php?anyid={$anyid}lang=$lang" target="_self">
<input type="hidden" name="action" value="do"/>
<table cellpadding="2" cellspacing="1" class="table">
            <td class="text">{$lang_batchtips5}{$lang_marks}</td>
            <td class="input">
			<select name="class1" id="class1select" class="noselect" onChange="changelocation1(document.myform.class1.options[document.myform.class1.selectedIndex].value,1)" size="1">		
			<option value="-1">{$lang_settopcolumns}</option>
<!--
EOT;
foreach($clist1now as $key=>$val1){
$k=$val1['id'];
echo <<<EOT
-->			
<option  value="$val1[id]" $class1[$k]>$val1[name]</option>
<!--
EOT;
}
echo <<<EOT
-->
			</select>
			<select name="class2" id="class2select" onChange="changelocation1(document.myform.class2.options[document.myform.class2.selectedIndex].value,2)"> 
			<option value=0>{$lang_modClass2}</option>
            </select>
			<select name="class3" id="class3select" onChange=""> 
			<option value=0>{$lang_modClass3}</option>
            </select></td>
			<td></td>
			<td></td>			
          </tr> 
		  </table>
</form>	
<!--
EOT;
if($cs==3){
echo <<<EOT
-->		  
<table cellpadding="2" cellspacing="1" class="table">
		 <tr> 
		 <form  method="POST" name="watermark" action="watermark.php?anyid={$anyid}&lang=$lang&cs=$cs" target="_self">
			<input type="hidden" name="class1" id="watermarkclass1" value="-1"/>
			<input type="hidden" name="class2" id="watermarkclass2" value="-1"/>
			<input type="hidden" name="class3" id="watermarkclass3" value="-1"/>
			<input type="hidden" name="action" value="do"/>
		 </form>
            <td class="text">{$lang_batchtips6}{$lang_marks}</td>
		<td class="submit">
		<input type="button" name="button" value="{$lang_batchtips7}" class="submit" onclick="return batch('watermark')"/>
		<span class="tips">{$lang_batchtips8}</span>
		</td>
          </tr>
</table>
<!--
EOT;
}else{
echo <<<EOT
-->	
<table cellpadding="2" cellspacing="1" class="table">
		 <tr> 
		 <form  method="POST" name="thumb" action="thumb.php?anyid={$anyid}&lang=$lang&cs=$cs" target="_self">
			<input type="hidden" name="class1" id="thumbclass1" value="-1"/>
			<input type="hidden" name="class2" id="thumbclass2" value="-1"/>
			<input type="hidden" name="class3" id="thumbclass3" value="-1"/>
			<input type="hidden" name="action" value="do"/>
		 </form>
            <td class="text">{$lang_batchtips9}{$lang_marks}</td>
		<td class="submit">
		<input type="button" name="button" value="{$lang_batchtips10}" class="submit" onclick="return batch('thumb')"/>
		<span class="tips">{$lang_batchtips11}</span>
		</td>
          </tr>
</table>
<!--
EOT;
}
echo <<<EOT
-->	
<div class="footer">$foot</div>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.ed.
?>-->